#ifndef LIMITQUEUE_H
#define LIMITQUEUE_H


struct LimitElement
{
    char *data;
    int len;
    LimitElement *last;
};

class LimitQueue
{
public:
    LimitQueue(int queueSize);
    void addElement(char *data,int len);
    void outElement();
    LimitElement* getHead(){return head;}
    LimitElement* getTail(){return tail;}
    int getCurrentSize(){return currentSize;}
private:
    int limitSize;
    int currentSize;
    LimitElement *head;
    LimitElement *tail;
};

#endif // LIMITQUEUE_H
